﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001093 RID: 4243
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueWorkbenchHandleFuncCsReq : IMessage<RogueWorkbenchHandleFuncCsReq>, IMessage, IEquatable<RogueWorkbenchHandleFuncCsReq>, IDeepCloneable<RogueWorkbenchHandleFuncCsReq>, IBufferMessage
	{
		// Token: 0x17003585 RID: 13701
		// (get) Token: 0x0600BD71 RID: 48497 RVA: 0x001FEE2F File Offset: 0x001FD02F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueWorkbenchHandleFuncCsReq> Parser
		{
			get
			{
				return RogueWorkbenchHandleFuncCsReq._parser;
			}
		}

		// Token: 0x17003586 RID: 13702
		// (get) Token: 0x0600BD72 RID: 48498 RVA: 0x001FEE36 File Offset: 0x001FD036
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueWorkbenchHandleFuncCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003587 RID: 13703
		// (get) Token: 0x0600BD73 RID: 48499 RVA: 0x001FEE48 File Offset: 0x001FD048
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueWorkbenchHandleFuncCsReq.Descriptor;
			}
		}

		// Token: 0x0600BD74 RID: 48500 RVA: 0x001FEE4F File Offset: 0x001FD04F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueWorkbenchHandleFuncCsReq()
		{
		}

		// Token: 0x0600BD75 RID: 48501 RVA: 0x001FEE58 File Offset: 0x001FD058
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueWorkbenchHandleFuncCsReq(RogueWorkbenchHandleFuncCsReq other) : this()
		{
			this.propEntityId_ = other.propEntityId_;
			this.workbenchContent_ = ((other.workbenchContent_ != null) ? other.workbenchContent_.Clone() : null);
			this.workbenchFuncId_ = other.workbenchFuncId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600BD76 RID: 48502 RVA: 0x001FEEB0 File Offset: 0x001FD0B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueWorkbenchHandleFuncCsReq Clone()
		{
			return new RogueWorkbenchHandleFuncCsReq(this);
		}

		// Token: 0x17003588 RID: 13704
		// (get) Token: 0x0600BD77 RID: 48503 RVA: 0x001FEEB8 File Offset: 0x001FD0B8
		// (set) Token: 0x0600BD78 RID: 48504 RVA: 0x001FEEC0 File Offset: 0x001FD0C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint PropEntityId
		{
			get
			{
				return this.propEntityId_;
			}
			set
			{
				this.propEntityId_ = value;
			}
		}

		// Token: 0x17003589 RID: 13705
		// (get) Token: 0x0600BD79 RID: 48505 RVA: 0x001FEEC9 File Offset: 0x001FD0C9
		// (set) Token: 0x0600BD7A RID: 48506 RVA: 0x001FEED1 File Offset: 0x001FD0D1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueWorkbenchContentInfo WorkbenchContent
		{
			get
			{
				return this.workbenchContent_;
			}
			set
			{
				this.workbenchContent_ = value;
			}
		}

		// Token: 0x1700358A RID: 13706
		// (get) Token: 0x0600BD7B RID: 48507 RVA: 0x001FEEDA File Offset: 0x001FD0DA
		// (set) Token: 0x0600BD7C RID: 48508 RVA: 0x001FEEE2 File Offset: 0x001FD0E2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint WorkbenchFuncId
		{
			get
			{
				return this.workbenchFuncId_;
			}
			set
			{
				this.workbenchFuncId_ = value;
			}
		}

		// Token: 0x0600BD7D RID: 48509 RVA: 0x001FEEEB File Offset: 0x001FD0EB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueWorkbenchHandleFuncCsReq);
		}

		// Token: 0x0600BD7E RID: 48510 RVA: 0x001FEEFC File Offset: 0x001FD0FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueWorkbenchHandleFuncCsReq other)
		{
			return other != null && (other == this || (this.PropEntityId == other.PropEntityId && object.Equals(this.WorkbenchContent, other.WorkbenchContent) && this.WorkbenchFuncId == other.WorkbenchFuncId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600BD7F RID: 48511 RVA: 0x001FEF5C File Offset: 0x001FD15C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.PropEntityId != 0U)
			{
				num ^= this.PropEntityId.GetHashCode();
			}
			if (this.workbenchContent_ != null)
			{
				num ^= this.WorkbenchContent.GetHashCode();
			}
			if (this.WorkbenchFuncId != 0U)
			{
				num ^= this.WorkbenchFuncId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600BD80 RID: 48512 RVA: 0x001FEFCA File Offset: 0x001FD1CA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600BD81 RID: 48513 RVA: 0x001FEFD2 File Offset: 0x001FD1D2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600BD82 RID: 48514 RVA: 0x001FEFDC File Offset: 0x001FD1DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.workbenchContent_ != null)
			{
				output.WriteRawTag(42);
				output.WriteMessage(this.WorkbenchContent);
			}
			if (this.WorkbenchFuncId != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.WorkbenchFuncId);
			}
			if (this.PropEntityId != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.PropEntityId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600BD83 RID: 48515 RVA: 0x001FF054 File Offset: 0x001FD254
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.PropEntityId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.PropEntityId);
			}
			if (this.workbenchContent_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.WorkbenchContent);
			}
			if (this.WorkbenchFuncId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.WorkbenchFuncId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600BD84 RID: 48516 RVA: 0x001FF0C4 File Offset: 0x001FD2C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueWorkbenchHandleFuncCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.PropEntityId != 0U)
			{
				this.PropEntityId = other.PropEntityId;
			}
			if (other.workbenchContent_ != null)
			{
				if (this.workbenchContent_ == null)
				{
					this.WorkbenchContent = new RogueWorkbenchContentInfo();
				}
				this.WorkbenchContent.MergeFrom(other.WorkbenchContent);
			}
			if (other.WorkbenchFuncId != 0U)
			{
				this.WorkbenchFuncId = other.WorkbenchFuncId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600BD85 RID: 48517 RVA: 0x001FF140 File Offset: 0x001FD340
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600BD86 RID: 48518 RVA: 0x001FF14C File Offset: 0x001FD34C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 42U)
				{
					if (num != 56U)
					{
						if (num != 96U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.PropEntityId = input.ReadUInt32();
						}
					}
					else
					{
						this.WorkbenchFuncId = input.ReadUInt32();
					}
				}
				else
				{
					if (this.workbenchContent_ == null)
					{
						this.WorkbenchContent = new RogueWorkbenchContentInfo();
					}
					input.ReadMessage(this.WorkbenchContent);
				}
			}
		}

		// Token: 0x04004C42 RID: 19522
		private static readonly MessageParser<RogueWorkbenchHandleFuncCsReq> _parser = new MessageParser<RogueWorkbenchHandleFuncCsReq>(() => new RogueWorkbenchHandleFuncCsReq());

		// Token: 0x04004C43 RID: 19523
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004C44 RID: 19524
		public const int PropEntityIdFieldNumber = 12;

		// Token: 0x04004C45 RID: 19525
		private uint propEntityId_;

		// Token: 0x04004C46 RID: 19526
		public const int WorkbenchContentFieldNumber = 5;

		// Token: 0x04004C47 RID: 19527
		private RogueWorkbenchContentInfo workbenchContent_;

		// Token: 0x04004C48 RID: 19528
		public const int WorkbenchFuncIdFieldNumber = 7;

		// Token: 0x04004C49 RID: 19529
		private uint workbenchFuncId_;
	}
}
